package com.qianfeng.openapi.common.enums;

public enum OpenApiEnums {
    REQUEST_PARAMETER_ERROR(11,"请求参数不合法!"),
    LOGIN_USERNAME_ERROR(12,"用户名错误!"),
    LOGIN_PASSWORD_ERROR(13,"密码错误!"),

    USER_ADD_ERROR(51,"添加用户信息失败！"),
    USER_DEL_ERROR(52,"删除用户信息失败！"),


    USER_ROLE_ADD_ERROR(71,"修改用户的角色失败！"),
    ROLE_MENU_ADD_ERROR(72,"修改角色的菜单失败！"),

    MENU_ADD_ERROR(81,"添加菜单信息失败！"),

    ELASTICSEARCH_ADD_ERROR(101,"添加数据到ES失败！"),

    NOT_AUTHOR(401,"用户没有权限!"),
    NOT_LOGIN(401,"用户未登录!")
    ;

    private Integer status;

    private String message;

    OpenApiEnums(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
